package com.example.administrator.smartdevice.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.smartdevice.R;
import com.example.administrator.smartdevice.model.ApplianceModel;
import com.hhc.netty.DeviceModel;

import java.util.List;

/**
 * Created by huhaichao on 2018/3/16.
 */

public class DeviceAdapter extends BaseQuickAdapter<ApplianceModel, BaseViewHolder> {
    public DeviceAdapter(int layoutResId, List data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ApplianceModel applianceModel) {
//        helper.setImageResource(R.id.activity_device_item_device_img_icon, item.getImageResource());
        helper.setText(R.id.activity_device_item_device_tv_title, applianceModel.getApplianceName());
    }
}
